package edu.egypt.textswitchersample;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextSwitcher;

public class TextSwitcherSampleActivity extends Activity implements OnClickListener {

	private TextSwitcher textSwitcher;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        textSwitcher = (TextSwitcher)findViewById(R.id.textSwitcher1);
        textSwitcher.setOnClickListener(this);
        
    }

	@Override
	public void onClick(View v) {
		textSwitcher.showNext();
		
	}
}